package com.commerce.common.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * 通用安全配置
 * 注意：此配置类禁用了所有权限验证，仅用于开发环境
 * 此配置只在显式启用时才生效
 */
@Configuration
@ConditionalOnProperty(name = "common.security.enabled", havingValue = "true", matchIfMissing = false)
public class CommonSecurityConfig {
    // 已经在WebSecurityConfig中定义了passwordEncoder
} 